// @ts-ignore
import request from '@/utils/request'

// 查询定时任务调度列表
export function test(TableName) {
  return request({
    url: '/eastjet-device-management/test/test',
    method: 'post',
    data:{TableName}
  })
}
// 查询定时任务调度列表
export function ftlist(data) {
  return request({
    url: '/eastjet-device-management/level/list',
    method: 'post',
    data:data
  })
}

export function addft(data) {
  return request({
    url: '/eastjet-device-management/level/add',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}


export function updateft(data) {
  return request({
    url: '/eastjet-device-management/level/update',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}

export function updatestate(data) {
  return request({
    url: '/eastjet-device-management/level/updateState',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}

export function delft(data) {
  return request({
    url: '/eastjet-device-management/level/delete',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}
